package com.huiqiao.lesson9.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 用户对象 sys_user
 * 
 * @author ruoyi
 */
@Data
@ApiModel("SysUser")
public class SysUser
{

    /** 用户ID */
    @ApiModelProperty(value = "用户ID", example = "1001")
    private Long userId;

    /** 用户账号 */
    @ApiModelProperty(value = "用户账号（登录名）", example = "chenfeng")
    private String userName;

    /** 用户昵称 */
    @ApiModelProperty(value = "用户昵称", example = "陈峰")
    private String nickName;

    /** 用户类型 */
    @ApiModelProperty(value = "用户类型（00系统用户 01普通用户）", example = "00")
    private String userType;

    /** 用户邮箱 */
    @ApiModelProperty(value = "用户邮箱", example = "chenfeng@example.com")
    private String email;

    /** 手机号码 */
    @ApiModelProperty(value = "手机号码", example = "13800001111")
    private String phonenumber;

    /** 用户性别 */
    @ApiModelProperty(value = "用户性别（0男 1女 2未知）", example = "0")
    private String sex;

    /** 用户头像 */
    @ApiModelProperty(value = "用户头像URL", example = "https://img.example.com/avatar.png")
    private String avatar;

    /** 密码 */
    @ApiModelProperty(value = "密码（仅注册时必填）", example = "Aa123456")
    private String password;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）", example = "0")
    private String delFlag;

    /** 角色对象 */
    @ApiModelProperty(value = "角色对象列表")
    private List<SysRole> roles;

    /** 权限标识 */
    @ApiModelProperty(value = "权限标识集合", example = "[\"system:user:list\", \"system:user:add\"]")
    private List<String> permissions;
}
